package Vpackage;

class Cylinder implements IComVolume
{
    private double radius;
    private double height;

    public Cylinder(double radius, double height)
    {
        this.radius = radius;
        this.height = height;
    }

    public double computeVolume()
    {
        return PI * radius * radius * height;
    }
}
